package com.itheima.Service.ServiceImpl;

import com.itheima.Service.SetemalDishService;
import com.itheima.bean.SetmealDish;
import com.itheima.dao.SetmealDishDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Service
@Transactional
public class SetemalDishServiceImpl implements SetemalDishService {


    @Autowired
    private SetmealDishDao setmealDishDao;


    @Override
    public int add(SetmealDish setmealDish) {
        return setmealDishDao.insert(setmealDish);
    }
}
